﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using 访问者模式.Visitor;

namespace 访问者模式
{
    public class StudentVip : Student
    {
        public string CourseFree { get; set; }
        public string CourseVip { get; set; }

        public override void GetVideo()
        {
            Console.WriteLine("你是VIP学生霸气可以做任何事");
        }

        public override void GetVideoVisitor(IVisitor visitor)
        {
            visitor.GetVideoVip(this);
        }
    }
}
